cc.Class({
    extends: cc.Component,

    properties: {
        info_icon: cc.Sprite,
        str_dsc: cc.Label,
        All_info:cc.SpriteAtlas,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start() {

    },
    init(data){
        this.info_icon.getComponent(cc.Sprite).spriteFrame=this.All_info.getSpriteFrame(data.info_icon);
        this.str_dsc.string=data.str_dsc;
    },

    // update (dt) {},
});
